#ifndef MENUITEM_H
#define MENUITEM_H

#include "Include.h"
#include "Draw.h"

namespace FunctionViewer {
	class MenuItem {
		friend class Draw;
		friend class MenuBar;
		
		private:
		MenuBar *menubar;
		int x, y, width, height;

		Draw draw;

		unsigned long id;

		char* MIName;

		private:
		void Init(MenuBar* menubar, char* name, int x, int y, int width, int height, Draw draw);
		void DeInit();

		public:
		char* getName();
		
		void drawItem();
	};
}

#endif // MENUITEM